<template>
	<div class="radio">
		<label>
			<input type="radio" :value="choice" v-model="v">
			<slot></slot>
		</label>
	</div>
</template>
<script>
	export default {
		props: {
			value: {
				type: String,
			},
			choice: {
				type: String,
			},
		},
		computed: {
			v: {
				get(){
					return this.value;
				},
				set(newValue) {
					this.$emit('input', newValue);
				}
			}
		},
		methods: {
		}
	}
</script>